package com.axx.android;

import android.app.Application;

import com.amap.api.location.AMapLocation;
import com.axx.android.profile.auth.model.AuthUser;
import com.axx.android.psuh.DemoPushService;
import com.axx.android.psuh.PushService;
import com.axx.android.utils.ContextUtils;
import com.igexin.sdk.PushManager;
import com.lzy.okgo.OkGo;

/**
 * Created by Administrator on 2017/7/21 0021.
 */

public class LetterApp extends Application {
    public static AMapLocation curLocation;
    public static AuthUser authUser;
    @Override
    public void onCreate() {
        super.onCreate();
        initHttp();

        //test
        PushManager.getInstance().initialize(this.getApplicationContext(), DemoPushService.class);
        PushManager.getInstance().registerPushIntentService(this.getApplicationContext(), PushService.class);

        authUser = ContextUtils.getUser(this);


    }

    private void initHttp() {
        OkGo.getInstance().init(this);
    }
}
